﻿using System;
using System.Windows.Forms;
using WorkflowDesigner.UI;

namespace WorkflowDesigner
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            canvas1.DoValidationEvent += Canvas1_DoValidationEvent;
        }

        private bool Canvas1_DoValidationEvent(object sender, ValidationEventArgs args)
        {
            return false;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            canvas1.AddShape(new ShapeStart());
        }

        private void button2_Click(object sender, EventArgs e)
        {
            canvas1.AddShape(new ShapeLine());
        }
    }
}
